<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:104:"/www/wwwroot/wait2024.cn/canying_fastadmin/public/../application/admin/view/fzdc/order/order/detail.html";i:1741679939;s:85:"/www/wwwroot/wait2024.cn/canying_fastadmin/application/admin/view/layout/default.html";i:1741180601;s:82:"/www/wwwroot/wait2024.cn/canying_fastadmin/application/admin/view/common/meta.html";i:1741180601;s:84:"/www/wwwroot/wait2024.cn/canying_fastadmin/application/admin/view/common/script.html";i:1741180601;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo htmlentities(\think\Config::get('fastadmin.adminskin') ?? ''); ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config ?? ''); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo htmlentities($vo['url'] ?? ''); ?>"><?php echo htmlentities($vo['title'] ?? ''); ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <style type="text/css">
    @media print {
        .btn-print-page {
            display: none;
        }
    }
    @media print {
        .order-detail {
            display: none;
        }
    }

    @media (max-width: 767px) {
        .fixed .content-wrapper,
        .fixed .right-side {
            padding-top: 50px;
        }
    }
    #main {
        height: 100%;
        background: #f1f4f6;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .skin-red-light .treeview-menu>li.active>a {
        color: #e74c3c;
    }
    [v-cloak] {
        display: none !important;
    }
    .text-cut {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    /* 修改默认样式 */
    .bootstrap-table .table:not(.table-condensed),
    .bootstrap-table .table:not(.table-condensed)>tbody>tr>td,
    .bootstrap-table .table:not(.table-condensed)>tbody>tr>th,
    .bootstrap-table .table:not(.table-condensed)>tfoot>tr>td,
    .bootstrap-table .table:not(.table-condensed)>tfoot>tr>th,
    .bootstrap-table .table:not(.table-condensed)>thead>tr>td {
        padding: 10px 8px;
    }
</style>

<div id="main" role="main">
    <div class="tab-content tab-addtabs">
        <div id="content">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <!--startprint-->
                    <div class="content">


                        <a class="btn btn-info btn-xs pull-right btn-print-page" href="javascript:" onclick="printpage()"><i class="fa fa-print">打印</i></a>

                        <div class="row">
                            <div class="col-md-12">
                                <div class="panel panel-default">
                                    <input type="hidden" id="order_id" value="<?php echo htmlentities($data['id'] ?? ''); ?>">
                                    <input type="hidden" id="store_id" value="<?php echo htmlentities($data['store_id'] ?? ''); ?>">

                                    <div class="panel-heading">商品信息</div>
                                    <div class="panel-body">
                                        <p>
                                            <span>订单号：</span><small><?php echo htmlentities($data['order_no'] ?? ''); ?></small>
                                            <?php if($data['dc_type'] == 1): ?>
                                            <span style="margin-left: 30px;">买家：</span><small><?php echo htmlentities($data['user_name'] ?? ''); ?></small>
                                            <?php endif; ?>
                                        </p>
                                        <?php if($data['type'] ==1): ?>
                                        <table class="table table-bordered">
                                            <thead>
                                            <tr>
                                                <th class="text-center">
                                                    <div class="th-inner">门店</div>
                                                </th>
                                                <th class="text-center">
                                                    <div class="th-inner">商品ID</div>
                                                </th>
                                                <th class="text-center">
                                                    <div class="th-inner">主图</div>
                                                </th>
                                                <th class="text-center">
                                                    <div class="th-inner">商品名称</div>
                                                </th>
                                                <th class="text-center">
                                                    <div class="th-inner">购买规格</div>
                                                </th>
                                                <th class="text-center">
                                                    <div class="th-inner">数量</div>
                                                </th>
                                                <th class="text-center">
                                                    <div class="th-inner">单价</div>
                                                </th>
                                                <th class="text-center">
                                                    <div class="th-inner">总价</div>
                                                </th>
                                                <th class="text-center">
                                                    <div class="th-inner">备注</div>
                                                </th>

                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php if(is_array($detail) || $detail instanceof \think\Collection || $detail instanceof \think\Paginator): $i = 0; $__LIST__ = $detail;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                            <tr>
                                                <td class="text-center"><?php echo htmlentities($vo['store']['title'] ?? ''); ?></td>
                                                <td class="text-center"><?php echo htmlentities($vo['goods_id'] ?? ''); ?></td>
                                                <td class="text-center"><a href="javascript:"><img class="img-sm img-center" src="<?php echo htmlentities($vo['goods']['image'] ?? ''); ?>"></a></td>
                                                <td class="text-center"><strong><?php echo htmlentities($vo['goods_name'] ?? ''); ?></strong></td>
                                                <td class="text-center"><?php echo htmlentities($vo['item_name'] ?? ''); ?></td>
                                                <td class="text-center"><?php echo htmlentities($vo['goods_count'] ?? ''); ?></td>
                                                <td class="text-center"><?php echo htmlentities($vo['goods_price'] ?? ''); ?></td>
                                                <td class="text-center"><?php echo htmlentities($vo['goods_prices'] ?? ''); ?></td>
                                                <td class="text-center"><?php echo htmlentities($vo['numbers'] ?? ''); ?></td>
                                            </tr>
                                            <?php endforeach; endif; else: echo "" ;endif; ?>

                                            </tbody>
                                            <tfoot>
                                            <tr>

                                                <th colspan="13" style="text-align: right;">
                                                    <?php if($data['coupon_id'] > 0): ?>
                                                    <span class="ordertext">优惠金额：<samp class="text-red">￥<?php echo htmlentities($data['used_amount'] ?? ''); ?></samp></span>
                                                    <?php endif; ?>
                                                    <span class="ordertext">实际支付：<samp class="text-red">￥<?php echo htmlentities($data['order_amount_total'] ?? ''); ?></samp></span>
                                                </th>
                                            </tr>
                                            </tfoot>
                                        </table>
                                        <?php endif; ?>
                                        <div style="color: #333;">
                                            <p style="margin-bottom: 15px;">订单状态：
                                                <span class="label label-primary"><?php echo htmlentities($data['status_text'] ?? ''); ?></span>
                                            </p>
                                            <p style="margin-bottom: 15px;">支付类型：
                                                <span class="label label-primary"><?php if($data['type'] == 1): ?>支付订单<?php else: ?>充值订单<?php endif; ?></span>
                                            </p>
                                            <?php if($data['status'] != 1 && $data['status'] != 5): ?>
                                            <p style="margin-bottom: 15px;">支付方式：
                                                <span class="label label-info"><?php echo htmlentities($data['pay_type'] ?? ''); ?></span>
                                            </p>
                                            <?php endif; if($data['order_type'] ==3): ?>
                                            <p style="margin-bottom: 15px;">就餐方式：
                                                <span class="label label-info"><?php if($data['p_type'] == 1): ?>先付后餐<?php else: ?>先餐后付<?php endif; ?></span>
                                            </p>
                                            <?php endif; ?>
                                            <p style="margin-bottom: 15px;">订单类型：
                                                <span class="label label-info"><?php if($data['order_type'] == 1): ?>自提<?php elseif($data['order_type'] == 2): ?>外卖<?php elseif($data['order_type'] == 3): ?>堂食<?php elseif($data['order_type'] == 4): ?>预约<?php endif; ?></span>
                                            </p>
                                            <p style="margin-bottom: 15px;">点餐类型：
                                                <span class="label label-info"><?php if($data['dc_type'] == 1): ?>用户点餐<?php else: ?>门店点餐<?php endif; ?></span>
                                            </p>
                                            <?php if($data['order_type'] ==1 || $data['order_type'] ==2): ?>
                                            <p style="margin-bottom: 15px;">商家接单状态：
                                                <span class="label label-info"><?php if($data['business_status'] == 0): ?>无<?php elseif($data['business_status'] == 1): ?>待接单<?php else: ?>已接单<?php endif; ?></span>
                                            </p>
                                            <?php endif; if($data['order_type'] == 3): ?>
                                            <p style="margin-bottom: 15px;">桌号：
                                                <span ><?php echo htmlentities($data['seat_info'] ?? ''); ?></span>
                                                <!-- <button type="button" class="btn btn-success" id="js_change" data-d-id="<?php echo htmlentities($data['id'] ?? ''); ?>" data-d-type="all" role="button" >调整桌号</button> -->
                                            </p>
                                            <?php endif; ?>

                                            <div>
                                                <?php if($data['status'] != 3 && $data['status'] != 9): ?>
                                                <button type="button" class="btn btn-success btn-status-click" data-order='{"status":3}'>设为已完成</button>
                                                <?php endif; if(($data['status'] != 3 && $data['status'] != 5 && $data['status'] != 9)): ?>
                                                <button type="button" class="btn btn-success btn-status-click" data-order='{"status":5}'>设为取消</button>
                                                <?php endif; ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>




                            <?php if($data['order_type'] == 2): ?>
                            <div class="col-md-12">
                                <div class="panel panel-default">
                                    <div class="panel-heading">收货地址</div>
                                    <div class="panel-body">
                                        <table class="table table-striped">
                                            <tbody>
                                            <tr>
                                                <td>收货人</td>
                                                <td><?php echo htmlentities((isset($data['address_json']['title']) && ($data['address_json']['title'] !== '')?$data['address_json']['title']:'') ?? ''); ?></td>
                                            </tr>
                                            <tr>
                                                <td>联系电话</td>
                                                <td><?php echo htmlentities((isset($data['address_json']['mobile']) && ($data['address_json']['mobile'] !== '')?$data['address_json']['mobile']:'') ?? ''); ?></td>
                                            </tr>
                                            <tr>
                                                <td>收货地址</td>
                                                <td><?php echo htmlentities((isset($data['address_json']['address']) && ($data['address_json']['address'] !== '')?$data['address_json']['address']:'') ?? ''); ?><?php echo htmlentities((isset($data['address_json']['remark']) && ($data['address_json']['remark'] !== '')?$data['address_json']['remark']:'') ?? ''); ?></td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <?php endif; if($data['order_type'] == 1): ?>
                            <div class="col-md-12">
                                <div class="panel panel-default">
                                    <div class="panel-heading">自取信息</div>
                                    <div class="panel-body">
                                        <table class="table table-striped">
                                            <tbody>
                                            <tr>
                                                <td>预约时间</td>
                                                <td><?php echo date('Y-m-d H:i:s',$data['subscribe_time']); ?></td>
                                            </tr>
                                            <tr>
                                                <td>预留电话</td>
                                                <td><?php echo htmlentities($data['subscribe_tel'] ?? ''); ?></td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <?php endif; ?>



                            <div class="col-md-12">
                                <div class="panel panel-default">
                                    <div class="panel-heading">付款信息</div>
                                    <div class="panel-body">
                                        <table class="table table-striped">
                                            <tbody>
                                            <?php if($data['coupon_id'] > 0): ?>
                                            <tr>
                                                <td>优惠券标题</td>
                                                <td><?php echo htmlentities($data['coupon_title'] ?? ''); ?></td>
                                            </tr>
                                            <tr>
                                                <td>优惠券抵扣金额</td>
                                                <td><?php echo htmlentities($data['used_amount'] ?? ''); ?></td>
                                            </tr>
                                            <?php endif; ?>
                                            <tr>
                                                <td>交易号</td>
                                                <td><?php echo htmlentities($data['out_trade_no'] ?? ''); ?></td>
                                            </tr>
                                            <tr>
                                                <td>订单备注</td>
                                                <td><?php echo htmlentities($data['remark'] ?? ''); ?></td>
                                            </tr>
                                            <tr>
                                                <td>付款时间</td>
                                                <td><?php if($data['pay_time'] != null): ?><?php echo htmlentities(datetime($data['pay_time'] ?? '') ?? ''); endif; ?></td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <input type="hidden" id="c-id" value="<?php echo htmlentities($data['id'] ?? ''); ?>">

                        </div>

                        <div class="hide layer-footer">
                            <label class="control-label col-xs-12 col-sm-2"></label>
                            <div class="col-xs-12 col-sm-8">
                                <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">关闭</button>
                            </div>
                        </div>


                        <style type="text/css">
                            .content {
                                padding: 25px 20px;
                            }

                            /* 订单详情 */
                            .order-detail .order-block {
                                height: 31px;
                                line-height: 31px;
                                background: #e8edf0;
                                border-radius: 13px;
                                font-size: 14px;
                                text-align: center;
                                position: relative;
                                margin-bottom: 50px;
                            }

                            .order-detail .order-block:before,
                            .order-detail .order-block:after {
                                content: "";
                                position: absolute;
                                z-index: 2;
                                left: 0;
                                top: 0;
                                bottom: 0;
                                border-radius: 13px;
                                background: #18bc9c;
                            }

                            .order-detail .order-block:after {
                                background: #4dc7af;
                                z-index: 1;
                            }

                            .order-detail .order-block.progress-1:before {
                                width: 0;
                            }

                            .order-detail .order-block.progress-1:after {
                                width: 16.6%;
                            }

                            .order-detail .order-block.progress-2:before {
                                width: 16.6%;
                            }

                            .order-detail .order-block.progress-2:after {
                                width: 33.2%;
                            }

                            .order-detail .order-block.progress-3:before {
                                width: 33.2%;
                            }

                            .order-detail .order-block.progress-3:after {
                                width: 49.8%;
                            }

                            .order-detail .order-block.progress-4:before {
                                width: 49.8%;
                            }

                            .order-detail .order-block.progress-4:after {
                                width: 66.4%;
                            }

                            .order-detail .order-block.progress-5:before {
                                width: 66.4%;
                            }

                            .order-detail .order-block.progress-5:after {
                                width: 83%;
                            }
                            .order-detail .order-block.progress-6:before {
                                width: 83%;
                            }
                            .order-detail .order-block.progress-6:after {
                                width: 100%;
                            }

                            .order-detail .order-block.progress-5 li:nth-child(6) {
                                color: #fff;
                            }

                            .order-detail .order-block li {
                                width: 16.6%;
                                float: left;
                                list-style-type: none;
                                border-radius: 13px;
                                position: relative;
                                z-index: 3;
                            }

                            .order-detail .order-block .tip {
                                font-size: 12px;
                                padding-top: 10px;
                                color: #717171;
                            }

                            .order-detail .order-block.progress-1 li:nth-child(1),
                            .order-detail .order-block.progress-2 li:nth-child(1),
                            .order-detail .order-block.progress-3 li:nth-child(1),
                            .order-detail .order-block.progress-4 li:nth-child(1),
                            .order-detail .order-block.progress-6 li:nth-child(1),
                            .order-detail .order-block.progress-5 li:nth-child(1) {
                                color: #fff;
                            }

                            .order-detail .order-block.progress-2 li:nth-child(2),
                            .order-detail .order-block.progress-3 li:nth-child(2),
                            .order-detail .order-block.progress-4 li:nth-child(2),
                            .order-detail .order-block.progress-6 li:nth-child(2),
                            .order-detail .order-block.progress-5 li:nth-child(2) {
                                color: #fff;
                            }

                            .order-detail .order-block.progress-3 li:nth-child(3),
                            .order-detail .order-block.progress-4 li:nth-child(3),
                            .order-detail .order-block.progress-6 li:nth-child(3),
                            .order-detail .order-block.progress-5 li:nth-child(3) {
                                color: #fff;
                            }

                            .order-detail .order-block.progress-4 li:nth-child(4),
                            .order-detail .order-block.progress-6 li:nth-child(4),
                            .order-detail .order-block.progress-5 li:nth-child(4) {
                                color: #fff;
                            }

                            .order-detail .order-block.progress-5 li:nth-child(5),
                            .order-detail .order-block.progress-6 li:nth-child(5) {
                                color: #fff;
                            }

                            .order-detail .order-block.progress-6 li:nth-child(6) {
                                color: #fff;
                            }

                            .order-detail .td__order-price {
                                width: 200px;
                                display: inline-block;
                            }

                            .order-head {
                                width: 100%;
                                padding: 12px 20px;
                                margin-top: 60px;
                                /* margin-bottom: 20px; */
                                /* border-bottom: 1px solid #eef1f5; */
                            }

                            .order-head:not(:first-child) {
                                margin-top: 0;
                            }

                            .order-head .title {
                                position: relative;
                                font-size: 1.5rem;
                                color: #333;
                            }

                            .order-head .title::before {
                                content: '';
                                position: absolute;
                                width: 4px;
                                height: 14px;
                                background: #18bc9c;
                                top: 4px;
                                left: -12px;
                            }

                            .table-responsive .table>tbody>tr>td {
                                text-align: center;
                                vertical-align: middle;
                                color: #676767;
                            }

                            .ordertext {
                                margin: 0 30px;
                            }

                            .table-bordered {
                                border: 1px solid #e8edf0;
                            }

                            .table-bordered>thead>tr>th,
                            .table-bordered>tbody>tr>th,
                            .table-bordered>tfoot>tr>th,
                            .table-bordered>thead>tr>td,
                            .table-bordered>tbody>tr>td,
                            .table-bordered>tfoot>tr>td {
                                border: 1px solid #e8edf0;
                            }

                            .table thead tr {
                                background: #f8f9fb;
                            }

                            .order_price span {
                                width: 70px;
                                display: inline-block;
                                text-align: right;
                            }
                        </style>
                    </div>
                    <!--endprint-->
                </div>

            </div>
        </div>
    </div>
</div>
<script>
    function printpage() {
        //将class="print-content"的元素 style="display: none;" 改为 style="display: block;"

        let oldStr = window.document.body.innerHTML; // 获取body的内容
        let start = "<!--startprint-->"; // 开始打印标识, 17个字符
        let end = "<!--endprint-->"; // 结束打印标识
        let newStr = oldStr.substr(oldStr.indexOf(start) + 17); // 截取开始打印标识之后的内容
        newStr = newStr.substring(0, newStr.indexOf(end)); // 截取开始打印标识和结束打印标识之间的内容
        window.document.body.innerHTML = newStr; // 把需要打印的指定内容赋给body
        window.print(); // 调用浏览器的打印功能打印指定区域
        window.document.body.innerHTML = oldStr; // body替换为原来的内容
    }
</script>



                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require.min.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

    </body>
</html>
